package com.lanou.service.impl;

import com.lanou.bean.CpnInfo;
import com.lanou.mapper.CpnInfoMapper;
import com.lanou.service.CpnInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class CpnInfoServiceImpl implements CpnInfoService{

    @Autowired
    private CpnInfoMapper cpnInfoMapper;

    @Override
    public CpnInfo selectCpnInfoByCpnNo(String cpnNo) {
        return cpnInfoMapper.selectCpnInfoByCpnNo(cpnNo);
    }

    @Override
    public int insertSelective(CpnInfo record) {
        return cpnInfoMapper.insertSelective(record);
    }

    @Override
    public String getCpnContentByCpnNo(String cpnNo) {
        return cpnInfoMapper.getCpnContentByCpnNo(cpnNo);
    }

    @Override
    public int updateCpnInfoByCpnNo(CpnInfo cpnInfo) {
        return cpnInfoMapper.updateCpnInfoByCpnNo(cpnInfo);
    }
}
